<#include "constant.ftl">
<!DOCTYPE html>
<html xmlns:v="urn:schemeas-microsoft-com:vml">
<head>
<!--[if lt IE 9]>
<?import namespace="v" implementation="#default#VML" ?>
<![endif]-->
	<#include "commonRef.ftl">
	<title>资源目录审核</title>
<link rel="stylesheet" type="text/css" href="${rc.getContextPath()}/resources/js/GooFlow-0.8/GooFlow2.css"/>
<link rel="stylesheet" type="text/css"	href="${rc.getContextPath()}/resources/js/ztree/css/zTreeStyle/zTreeStyle.css"	>
<script type="text/javascript" src="${rc.getContextPath()}/resources/js/ztree/js/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript" src="${rc.getContextPath()}/resources/js/ztree/js/jquery.ztree.excheck-3.5.js"></script>
<script type="text/javascript" src="${rc.getContextPath()}/resources/js/ztree/js/jquery.ztree.exedit-3.5.js"></script>
<link href="${rc.getContextPath()}/resources/js/bootstrap-toggle/css/bootstrap-toggle.min.css" rel="stylesheet">
<script type="text/javascript" src="${rc.getContextPath()}/resources/js/bootstrap-toggle/js/bootstrap-toggle.min.js"></script>

<style type="text/css">

.GooFlow .item_mark td {
    cursor: default;
}
.GooFlow .ico {
    cursor: default;
}
</style>
</head>
<body>
<div class="center-block ">
	<div class="panel panel-default">
		<!-- 导航 & 操作按钮 -->
		<div class="panel-heading" style="line-height: 35px;padding: 5px 15px;font-size: 16px;">
			<ol  style="display: inline;background-color: transparent;" class="breadcrumb" >
				<li><a href="javascript:void(0)" id="backWard">资源发布</a></li>
				<li class="active">审核</li>
				<div style="display: inline; float: right;">
					<button type="button" id="btn-save" class="btn btn-default">保存</button>
					<button type="button" id="btn-yes" class="btn btn-default">通过</button>
					<button type="button" id="btn-no" class="btn btn-default">驳回</button>
				</div>
			</ol>
		</div>
		<div style="padding:10px" >
			<!-- Nav tabs -->
			<ul class="nav nav-tabs" role="tablist">
				<li role="presentation" class="active">
					<a href="#res-verify" aria-controls="res-verify" role="tab" data-toggle="tab">资源目录审核</a></li>
				<li role="presentation">
					<a href="#flow-detail" aria-controls="flow-detail" role="tab" data-toggle="tab">审核流程详情</a></li>
			</ul>
			<!-- Tab panes -->
			<div class="tab-content">
				<div ms-controller="resPublishVM" role="tabpanel" class="tab-pane active" id="res-verify" style="padding: 30px;position: relative;">
					<form class="form-horizontal" role="form">
					   <div class="resPublish-property">
					   
					   </div>
						<div id="formContainer"  style="margin-top:50px;" >
                        
                        </div>
					</form>
				</div>
				<div role="tabpanel" class="tab-pane" id="flow-detail"  style="padding:20px;">
					<div id="workFlow" class="flow" ></div>
					<table class="table table-striped">
						<tr>
							<th>办理环节</th><th>办理信息</th><th>时间</th><th>办理类型</th><th>办理意见</th>
						</tr>
						<#if taskList??>
						<#list taskList as t>
						<tr>
							<td>${t.TASK_NAME!}</td>
							<td>【办理人】${t.TRANSACTOR_NAME!}<br>【办理部门】${t.ORG_NAME!}</td>
							<td>${t.START_TIME} - ${t.END_TIME}</td>
							<td>${ftl_operateType[t.OPERATE_TYPE]}</td>
							<td>${t.REMARKS!}</td>
						</tr>
						</#list>
						</#if>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
<#include "mask.ftl"> 
<#include "tipDlg.ftl"> 
<@tipDlg content=""/>
<script type="text/javascript">
var str="${host}";
var resPublishVerify;
document.domain=str.substring(str.indexOf('.')+1,str.length);
$(function(){
	seajs.use(['resources/js/rescatalogMix/resPublishX/resPublish_verify.js'], function(ResPublishVerify){
		resPublishVerify=new ResPublishVerify({
			baseUrl:"${rc.getContextPath()}",
			userId:${userId!undefined},
			userName:'${user.account!undefined}',
			org:{
                id:${org.id},
                name:'${org.name}',
                code:'${org.code}'
            },
			status:'${RequestParameters["status"]!0}',
			wfVersionId:${RequestParameters["wfVersionId"]!0},
			instanceId:${RequestParameters["instanceId"]!0},
			taskId:${RequestParameters["taskId"]!0},
			curTaskNode:'${curTaskNode!}',
			resPublishId:${RequestParameters["resPublishId"]!0},
			listParam:{
				userId:${userId!undefined},
				qTitle:'${RequestParameters["qTitle"]!}',
				qStatus:'${RequestParameters["qStatus"]!}',
				pageSize:${RequestParameters["pageSize"]!10},
				pageNo:${RequestParameters["pageNo"]!1}
			}
		});
	});
});
</script>
</body>
</html>